package com.zcl.javaClassAndObject.collection;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

/**
 * @Description:
 * @author: zcl
 * @date: 2021/12/13  17:32
 */
public class SimpleCollection {
    public static void main(String[] args) {
        Collection c = new ArrayList();
        for (int i = 0; i < 10; i++) {
            c.add(Integer.toString(i));
        }
        Iterator it = c.iterator();
        while (it.hasNext())
            System.out.println(it.next());
    }
}

